[Previous] [Top] [Next]

Creating HREF Anchors

On creating (or editing) an HREF anchor, you will see the following dialogue box:

The text entered into the TEXT, URL and NAME fields will be used to create the HTML anchor. For the example shown, the resulting anchor would be as follows:

<A HREF="..\summary.html#New Features">New Features in Version 5</A>

The URL field contains a URL or a local filename for the anchor target. The NAME field (if used) contains the label of a NAME anchor in the target file. If the URL field is left blank, the target will be the current file, and a NAME must be specified. The TEXT field is the text that should appear on the screen in the document.

"HREF" anchors will appear in blue text underlined text in your source document, just like they do in Netscape. "NAME" anchors do not have a special text format in Netscape, so they are indicated by a dotted underline in your source document.

Once you are happy with the Name and Text fields, click the Insert button and your anchor field will be inserted in the document.

Note: The length of the anchor text must not cover more than one line of text on the Word for Windows editing screen. This is a limitation of Word for Windows fields. If you do specify anchor text covering more than one line, Word for Windows will display the error message: "DisplayText cannot span more than one line!" in place of the anchor text. If you see this message, you should select the field by clicking on the error message, then bring up the Anchors dialogue box by pressing Alt+Shift+F9. You can then either remove the field - leaving the text in the document - or edit the text to make it shorter.

[Previous] [Top] [Next]


This page is maintained by Dr Grahame S Cooper (G.S.Cooper@iti.salford.ac.uk) using HTML Author. Last modified on 09/04/96.